/**
 * 
 */
package com.icon.jsf;

import javax.faces.event.ActionEvent;

/**
 * @author jonathanxuya
 *
 */
public class DemoBean {
	public DemoBean() {
	}
	
	private String name;
	private Integer count;
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the count
	 */
	public Integer getCount() {
		return count;
	}
	/**
	 * @param count the count to set
	 */
	public void setCount(Integer count) {
		this.count = count;
	}
	
	public void countListener (ActionEvent event){
		count = name.length();
		}
	
}
